pull: Check free space when pulling deltas
authorColin Walters <walters@verbum.org>
Mon, 26 Jun 2017 19:10:57 +0000 (15:10 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 27 Jun 2017 18:42:00 +0000 (18:42 +0000)
commit4796cd04540027a753e7f3decea3e045cc8dec82
tree30b861dfc1472b3de09cd291979c688756c4d046
parent54db9ecab36858bbf5afb506d7362577c157ab43
pull: Check free space when pulling deltas

Computing download/storage size for `archive` pulls is hard; there's
`OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES` which was from a
pre-static-deltas effort by Endless, but we aren't currently making use of this
much.

Static deltas were designed to solve this problem; we have the total
uncompressed size. Let's check free space before doing a delta pull.

Related: https://github.com/ostreedev/ostree/issues/962

Closes: #963
Approved by: jlebon
src/libostree/ostree-repo-pull.c